home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * PSWsamples.psw
- *
- * Creator: Carl Orthlieb
- * CreationDate: 90-11-27
- * Modified by Ken Fromm
- */
-
- defineps PSWPatternOctagon ()
- 8 dict begin
- /PatternType 1 def
- /PaintType 2 def
- /TilingType 1 def
- /BBox [ 0 -1 5 5 ] def
- /XStep 4 def
- /YStep 4 def
- /DrawShape {
- 0 1 rlineto 1 1 rlineto 1 0 rlineto 1 -1 rlineto 0 -1 rlineto -1 -1 rlineto
- -1 0 rlineto -1 1 rlineto
- } bind def
- /PaintProc { % dict
- begin
- 0.01 setlinewidth
- 0 0 moveto DrawShape closepath stroke
- 2 2 moveto DrawShape closepath stroke
- end
- } def
- currentdict
- end
- /Octagon exch def
- endps
-
- defineps PSWPatternWeave ()
- 13 dict begin
- /PatternType 1 def
- /PaintType 1 def
- /TilingType 1 def
- /BBox [ -4 -4 4 4 ] def
- /XStep 5 def
- /YStep 5 def
- /pm [30 cos 30 sin neg 0 1 0 0] 3 -3 matrix scale matrix concatmatrix def
- /im pm matrix invertmatrix def % Transforms user space to pattern space
- /Multi true def
- /PaintColors [ [1] [0] ] def
- /DrawShape {
- 1 2 moveto 2 2 rlineto -2 0 rlineto closepath fill % Right "ear"
- -1 1 moveto 0 2 rlineto -2 -2 rlineto closepath fill % Left "ear"
- 1 1 moveto
- 0 3 rlineto -1 0 rlineto -1 -1 rlineto 0 -3 rlineto
- -3 -3 rlineto 0 -1 rlineto 1 0 rlineto 3 3 rlineto
- 3 0 rlineto 1 1 rlineto 0 1 rlineto closepath
- } bind def
- /PaintData [ { fill } bind { im concat stroke } bind ] def
- /PaintProc { % data dict
- begin
- DrawShape exec
- end
- } def
- currentdict
- end
- /Weave exch def
- endps
-
- defineps PSWPatternCircleStar ()
- 10 dict begin
- /PatternType 1 def
- /PaintType 1 def
- /TilingType 1 def
- /BBox [ -12 -12 12 12 ] def
- /XStep 24 def
- /YStep 24 def
- /Multi true def
- /PaintColors [ [ 1 0 0 ] [ 0 1 0 ] [ 0 0 1 ] ] def
- /PaintData [
- { -12 -12 moveto 0 24 rlineto 24 0 rlineto 0 -24 rlineto closepath } bind
- { 12 0 moveto 0 0 12 0 360 arc closepath } bind
- { 0 12 moveto 4 { 144 rotate 0 12 lineto } repeat closepath } bind
- ] def
- /PaintProc { % data dict
- begin
- exec fill
- end
- } def
- currentdict
- end
- /CircleStar exch def
- endps
-
- defineps PSWPatternBrick ()
- 11 dict begin
- /PaintType 1 def
- /PatternType 1 def
- /TilingType 1 def
- /BBox [ 0 0 1 1 ] def
- /XStep 1 def
- /YStep 1 def
- /Multi true def
- /Bitmap <
- FFFFFF
- 808080
- 808080
- 808080
- FFFFFF
- 080808
- 080808
- 080808
- > def
- /PaintColors [ [1 0 0] [0 1 0] ] def
- /PaintData [ { 0 0 moveto 0 1 rlineto 1 0 rlineto 0 -1 rlineto closepath eofill }
- { 24 24 true [24 0 0 -24 0 24] { Bitmap } imagemask }
- ] def
- /PaintProc { % data dict
- begin
- exec
- end
- } bind def
- currentdict
- end
- /Brick exch def
- endps
-